package java56_2;

public class SchoolTest {
	public static void main(String[] args) {
		int i = 100;
		School s = new School();// 实例化
		// .操作符 访问属性和方法
		s.showInformation();
		// .操作符，赋值
		s.name = "合肥科海中心";
		s.city = "安徽省合肥市";
		s.addr = "屯溪路193号";
		s.foundation = "2005-12-1";
		s.xiaozhang = "柳校长";
		s.labs = 6;
		s.classRoooms = 8;
		System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>");
		// System.out.println(s);
		s.showInformation();
		System.out.println("这个负责人是：" + s.xiaozhang);
		s.xiaozhang = "刘志校长";
		s.showInformation();
		System.out.println(">>>>>>>>>>>>>>>>>>>....");
		System.out.println("地址在：");
		String dizhi = s.getAddress();// 接受方法的返回值
		System.out.println(dizhi);
		// s = new School();
		// s.showInformation();
		// School s2 = null;
		// s2.showInformation();// NullPointerException
	}
}
